home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.shlink.de!wiloyee!herbert
- From: herbert@wiloyee.shnet.org (Martin Dietze)
- Subject: Re: Life is strange, especially with Watcom
- X-Newsreader: TIN [version 1.2 PL2+color]
- Organization: Studentenhochhaus Wedel Deutschland
- Message-ID: <DM1J1K.Lx8@wiloyee.shnet.org>
- References: <DLxtH3.AMA.0.-s@cs.vu.nl>
- Date: Wed, 31 Jan 1996 10:12:55 GMT
-
- Andre Versteeg (alverste@cs.vu.nl) wrote:
-
- : int v;
- : v = Setup();
-
- : All compiles very well, until I changed the code to:
-
- : int v = Setup(); and changed the filename to .CPP
-
- : Now the compiler screams the following:
-
- : * Undefined reference: int near Setup(void)
-
- Ever considered leaving the code and only changing the file's extension?
- What does the compiler say then?
-
- Could it be it's a "C-only" header file? Check if there's
- something like "#ifdef __cplusplus" at top of the file, look up your
- Watcom headers to get an idea.
-
- herbert
-
-